import React from 'react'
import ReactDOM from 'react-dom'
import App from './App'
import { BrowserRouter as Router } from 'react-router-dom'
import 'antd/dist/antd.css'
import '_assets/css/global.css'
import { ConfigProvider, Spin } from 'antd'
// 国际化
import zhCN from 'antd/lib/locale/zh_CN';
import store from './store'
import { Provider } from 'react-redux'
import { loading } from '_utils/request'

ReactDOM.render(
  <ConfigProvider locale={zhCN}>
    <Spin spinning={ loading } tip="加载中...">
      <Router>
        <Provider store={store}>
          <App/>
        </Provider>
      </Router>
    </Spin>
  </ConfigProvider>
  ,
  document.querySelector('#root')
)